import request from '@/utils/request'
export function getPages(params) {
  return request({
    url: '/zhshebei/getList',
    method: 'get',
    params
  })
}

export function getDetailPages(params) {
  return request({
    url: '/zhshebei/getDetailPages',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    method: 'post',
    url: '/zhshebei/add',
    data: {
      ...data
    }
  })
}

export function update(data) {
  return request({
    method: 'post',
    url: '/zhshebei/edit',
    data: {
      ...data
    }
  })
}

export function getById(id) {
  return request({
    method: 'get',
    url: '/zhshebei/getById',
    params: {
      id
    }
  })
}

export function del(id) {
  return request({
    method: 'get',
    url: '/meiri/deleteById',
    params: {
      id
    }
  })
}
